﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Examination.Model
{
    public class DataContext : DbContext
    {
        public DataContext(DbContextOptions<DataContext> options) : base(options)
        {

        }

        public DbSet<User> Users { get; set; }
        public DbSet<Question> Questions { get; set; }
        public DbSet<Examination> Examinations { get; set; }
        public DbSet<ExamQuestion> ExamQuestions { get; set; }
        public DbSet<Paper> Papers { get; set; }
        public DbSet<PaperQuestion> PaperQuestions { get; set; }
        /*
         Add-Migration MyMigration
         Update-Database

        CREATE TABLE `__EFMigrationsHistory` 
        ( 
            `MigrationId` nvarchar(150) NOT NULL, 
            `ProductVersion` nvarchar(32) NOT NULL, 
             PRIMARY KEY (`MigrationId`) 
        );
         */
    }
}
